package com.gopay.common.domain.pg;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liuyong on 2017/11/9.
 */
@Entity
@Table(name="PG_CLOUD_FILE_DTL")
public class PgCloudFileDtl extends BaseEntity{

    private static final long serialVersionUID = 1L;

    private int transDtlSq;

    private String merId;

    private String merTxnId;

    private String gatewayVersion;

    private Date merTxnTm;

    private String agreeId;

    private String fileType;

    private String filePath;

    private Date gopayServerTime;

    private String charset;

    private String signType;


    @Id
    @SequenceGenerator(name = "PgCloudFileDtlSequence", sequenceName = "PG_CLOUD_FILE_DTL_SEQ")
    @GeneratedValue(generator = "PgCloudFileDtlSequence", strategy = GenerationType.SEQUENCE)
    @Column(name = "TRANS_DTL_SQ", unique = true, nullable = false, length = 30)
    public int getTransDtlSq() {
        return transDtlSq;
    }

    public void setTransDtlSq(int transDtlSq) {
        this.transDtlSq = transDtlSq;
    }

    @Column(name = "MER_ID", nullable = false, length = 32)
    public String getMerId() {
        return merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    @Column(name = "MER_TXN_CD", nullable = false, length = 10)
    public String getMerTxnId() {
        return merTxnId;
    }

    public void setMerTxnId(String merTxnId) {
        this.merTxnId = merTxnId;
    }

    @Column(name = "GATEWAY_VERSION", nullable = false, length = 5)
    public String getGatewayVersion() {
        return gatewayVersion;
    }

    public void setGatewayVersion(String gatewayVersion) {
        this.gatewayVersion = gatewayVersion;
    }

    @Column(name = "MER_TXN_TM", nullable = false)
    public Date getMerTxnTm() {
        return merTxnTm;
    }

    public void setMerTxnTm(Date merTxnTm) {
        this.merTxnTm = merTxnTm;
    }

    @Column(name = "AGREE_ID", nullable = false, length = 20)
    public String getAgreeId() {
        return agreeId;
    }

    public void setAgreeId(String agreeId) {
        this.agreeId = agreeId;
    }

    @Column(name = "FILE_TYPE", nullable = false, length = 50)
    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @Column(name = "FILE_PATH", length = 50)
    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @Column(name = "GOPAY_SERVER_TIME")
    public Date getGopayServerTime() {
        return gopayServerTime;
    }

    public void setGopayServerTime(Date gopayServerTime) {
        this.gopayServerTime = gopayServerTime;
    }

    @Column(name = "CHARSET", length = 1)
    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    @Column(name = "SIGN_TYPE", length = 1)
    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }
}
